Source: http://www.ryanross.net/cc/
Date: 2009-09-03
Editing Board


Topic: How to mod the team icons in original CC V using Paint Shop Pro 7
Author: CSO_Talorgan (91.84.183.---)
Date:   08-29-09 14:29

By "team icon" I mean the wee star or balkenkreuz which can appear next to each team on the tactical map depending on how the options (F8) are set up. I have succeeded in modding these after a fashion and would like to present this here for criticism and feedback. I don't know if anyone else has done this before.

This method is imperfect because I don't understand the relationship between the the alpha channel and the .exe. As a result control of colour is impossible. You just have to "shotgun" the game with a series of colours and pick out the ones that work. It might be that more than one mask is necessary.

"HowTo"s are written by intelligent people who know what they are talking about, so by definition this cannot be a "HowTo"!

:)

Here goes:

HOW TO MOD THE TEAM ICONS IN ORIGINAL CC V USING PAINT SHOP PRO 7

If you print these instructions off before starting you’ll have one less program to Alt-Tab through.

Create the shape you want your new team icon to be, black on white. The game’s team icons are 15 x 15 pixels. I made mine 14 x 14 so size is obviously not critical.

In Paint Shop Pro 7 select:

Masks > New > From Image

Ensure that the "Any non-zero value" radio button is selected and that "Invert mask data" is unticked.

Then immediately choose:

Masks > Save to Disk

It should say “Save Mask Channel” at the top of the window.

Give your mask a suitably thrilling name and press “Save”.

Close the PSP 7 window but you probably won’t want to “Save” when prompted.

Create a new file the same size as your mask.

Fill it with the colour you want that particular team icon to be. So you should have a coloured square.

(The game uses a traffic-light system but we all know that that is a scurrilous plot on the part of those deeply sinister and eternally wicked people at S3T to subvert our good natures and separate us from our cash. Why just the other day I was sitting at a junction and before I knew it I had taken out my pocket book and written them a sizeable cheque. Goodness knows what would have happened if Mildred hadn’t been with me. In a right trance I was ...)

Open the “Layer palette” and press the wee “Create layer” button on the left. This creates a new (raster) layer which should be transparent (PSP’s checkerboard pattern).

In the “Layer palette” drag Layer 1 (coloured) above Layer 2 (transparent), but then select Layer 2 so that it is highlighted.

Choose:

Masks > Load From Disk

... and select the mask with the thrilling name created earlier and then “Open”

Then immediately choose:

Masks > Save to Alpha Channel > OK > OK

Select “Save” and opt for “Truevision Targa” (*.tga). In the “Options” section make sure that the “24 bits” and “Uncompressed” radio buttons are selected.

Then press “Save”. A warning box appears to say that everything is about to be scrunched together. Select “Yes”.

Close Paint Shop Pro.

Use Windows Explorer to track the new file down. In “Thumbview” it will look like a coloured box.

Rename the new file after that it is about to replace.

Copy and paste the file into your unpacked “TerrainA” file.

Open Spriter and select the TerrainA tab and then “Rebuild from 32-bit”. Spriter will need to be pointed at the unpacked “TerrainA” file which is a bit of a clickfest.

Assuming you are happy with the output folder press “Create”.

Give Spriter a moment or two to do its thing and then close it.

Once again use Windows Explorer to track the new file down. It will be called “new TerrainA”.

Rename it “TerrainA”

Transfer it to ...\Close Combat Invasion Normandy\Graphics which should cause the deletion of the “TerrainA” file already there.

Close all programs down, so that you are back at the desktop.

Fire up the game.

Fingers crossed!

The End

P.S. If a kind person would care to show me how to post images here I could let you see some screenshots.



Author: Mafi (---.dip.t-dialin.net)
Date:   09-03-09 11:44

Hi Talorgan,

thanks for this report. Would you do me and the community a favour and allow me to add this post to the readme's of the CC2Spriter-Package?

Thanks in advance

Mafi



Author: CSO_Talorgan (91.85.169.---)
Date:   09-04-09 03:02

It would be a great honour if you did that, Mafi.

Please let me know if there are any parts of the instructions which are not clear.

Cheers,

Ken


 
